<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
        xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:id="@+id/station_foreground"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:background="?attr/selectableItemBackground"
        android:orientation="vertical">

    <LinearLayout
            android:id="@+id/layoutMain"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:minHeight="90dp">

        <FrameLayout
                android:id="@+id/frameLayout"
                android:layout_width="90dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:measureAllChildren="true">

            <ImageView
                    android:id="@+id/imageViewIcon"
                    android:layout_width="70dp"
                    android:layout_height="wrap_content"
                    android:layout_gravity="center|start"
                    android:layout_marginEnd="20dp"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="20dp"
                    android:layout_marginStart="5dp"
                    android:contentDescription="@null" />

            <ImageView
                    android:id="@+id/transparentCircle"
                    android:layout_width="70dp"
                    android:layout_height="70dp"
                    android:layout_marginEnd="20dp"
                    android:layout_marginLeft="5dp"
                    android:layout_marginRight="20dp"
                    android:layout_marginStart="5dp"
                    android:tint="?android:attr/windowBackground"
                    app:srcCompat="@drawable/ic_transparent_circle"
                    android:visibility="gone"
                    android:contentDescription="@null" />

            <ImageView
                android:id="@+id/trendStatusIcon"
                android:layout_width="30dp"
                android:layout_height="30dp"
                android:layout_gravity="top|start"
                android:scaleType="fitCenter"
                app:srcCompat="@drawable/ic_trending_flat_black_24dp" />

            <ImageView
                    android:id="@+id/starredStatusIcon"
                    android:layout_width="30dp"
                    android:layout_height="30dp"
                    android:layout_gravity="top|end"
                    android:scaleType="fitCenter"
                    app:srcCompat="@drawable/ic_star_transparent_with_border_24dp" />

        </FrameLayout>

        <LinearLayout
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_gravity="center_vertical"
                android:layout_weight="1"
                android:orientation="vertical"
                android:paddingBottom="8dp"
                android:paddingLeft="5dp"
                android:paddingStart="5dp"
                android:paddingTop="8dp">

            <TextView
                    android:id="@+id/textViewTitle"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:lines="1"
                    android:scrollbars="none"
                    android:textAppearance="@style/TextAppearance.AppCompat.Body2" />

            <TextView
                    android:id="@+id/textViewShortDescription"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:drawablePadding="4sp"
                    android:ellipsize="end"
                    android:lines="1"
                    android:scrollbars="none"
                    android:textAppearance="@style/TextAppearance.AppCompat.Body1" />

            <TextView
                    android:id="@+id/textViewTags"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"
                    android:ellipsize="end"
                    android:lines="1"
                    android:scrollbars="none"
                    android:textColor="@color/textColorSecondary"
                    android:textAppearance="@style/TextAppearance.AppCompat.Body1" />

        </LinearLayout>

        <ImageButton
                android:id="@+id/buttonMore"
                android:layout_width="wrap_content"
                android:layout_height="match_parent"
                android:layout_gravity="center"
                android:background="?attr/selectableItemBackgroundBorderless"
                android:contentDescription="@string/image_button_more"
                android:minWidth="50dp"
                android:padding="5dp"
                android:tint="?attr/iconsInItemBackgroundColor"
                app:srcCompat="@drawable/ic_expand_more_black_24dp" />
    </LinearLayout>

    <ViewStub
            android:id="@+id/stubDetails"
            android:inflatedId="@+id/layoutDetails"
            android:layout="@layout/stub_list_item_station_details"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_marginEnd="16dp"
            android:layout_marginLeft="16dp"
            android:layout_marginRight="16dp"
            android:layout_marginStart="16dp"
            android:clickable="true"
            android:descendantFocusability="blocksDescendants"
            android:orientation="vertical"/>

</LinearLayout>